<?php $this->pageTitle=Yii::app()->name . ' - '.UserModule::t("Change Password");
$this->breadcrumbs=array(
	UserModule::t("Profile") => array('/user/profile'),
	UserModule::t("Change Password"),
);
?>
<div class="left-side">
    <div class="gallery"><?php  echo CHtml::link(CHtml::image($avatarThumbnail),$avatar )?>
    </div>
    <ul class="profile-actions">
    <?php if(UserModule::isAdmin()) : ?>
    <li><?php echo CHtml::link(UserModule::t('Quản trị'),array('/admin')); ?></li>
    <?php endif; ?>
    <?php if(UserModule::isDistributor()) : ?>
    <li><?php echo CHtml::link(UserModule::t('Quản trị'),array('/distributor')); ?></li>
    <?php endif; ?>
    <?php if(UserModule::isTransporter()) : ?>
    <li><?php echo CHtml::link(UserModule::t('Quản trị'),array('/transporter')); ?></li>
    <?php endif; ?>
    <?php if(UserModule::isSupplier()) : ?>
    <li><?php echo CHtml::link(UserModule::t('Quản trị'),array('/supplier')); ?></li>
    <?php endif; ?>
    <li><?php echo CHtml::link(UserModule::t('Thay đổi ảnh đại diện'),array('changeAvatar')); ?></li>
    <li><?php echo CHtml::link(UserModule::t('Thông tin cá nhân'),array('/user/profile')); ?></li>
    <li><?php echo CHtml::link(UserModule::t('Thay đổi thông tin'),array('edit')); ?></li>
    <li><?php echo CHtml::link(UserModule::t('Đổi mật khẩu'),array('changepassword')); ?></li>
    <li><?php echo CHtml::link(UserModule::t('Đăng xuất'),array('/user/logout')); ?></li>
    
    </ul>
    
</div>
<div class="right-side">
<h2><?php echo UserModule::t("Change password"); ?></h2>

<div class="form">
<?php $form=$this->beginWidget('UActiveForm', array(
	'id'=>'changepassword-form',
	'enableAjaxValidation'=>true,
)); ?>

	<p class="note"><?php echo UserModule::t('Fields with <span class="required">*</span> are required.'); ?></p>
	<?php //echo CHtml::errorSummary($model); ?>
	
	<div class="row">
	<label for="">Mât khẩu mới</label>
	<?php echo $form->passwordField($model,'password'); ?>
	<?php echo $form->error($model,'password'); ?>
	</div>
	
	<div class="row">
	<label for="">Lặp lại</label>
	<?php echo $form->passwordField($model,'verifyPassword'); ?>
	<?php echo $form->error($model,'verifyPassword'); ?>
	</div>
	
	
	<div class="row submit">
	<?php echo CHtml::submitButton(UserModule::t("Save")); ?>
	</div>

<?php $this->endWidget(); ?>
</div><!-- form -->
</div>